700
Is it possible to colour a particular column for specified values

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IConditionalFormatPtr var_ConditionalFormat = spGantt1->GetConditionalFormats()->Add(L"int(%1) in (3,4,5)",vtMissing);
	var_ConditionalFormat->PutBackColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXGANTTLib::FormatApplyToEnum(0x1));
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem(long(0)),long(1),long(1));
	var_Items->PutCellCaption(var_Items->AddItem(long(2)),long(1),long(3));
	var_Items->PutCellCaption(var_Items->AddItem(long(4)),long(1),long(5));
spGantt1->EndUpdate();

699
Is it possible to colour a particular column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Column 1");
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXGANTTLib::exCellBackColor,long(255));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem(long(0)),long(1),long(1));
	var_Items->PutCellCaption(var_Items->AddItem(long(2)),long(1),long(3));
	var_Items->PutCellCaption(var_Items->AddItem(long(4)),long(1),long(5));
spGantt1->EndUpdate();

698
How do i get all the children items that are under a certain parent Item handle
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"P");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
EXGANTTLib::IItemsPtr var_Items1 = spGantt1->GetItems();
	long hChild = var_Items1->GetItemChild(var_Items1->GetFirstVisibleItem());
	OutputDebugStringW( _bstr_t(var_Items1->GetCellCaption(hChild,long(0))) );
	OutputDebugStringW( _bstr_t(var_Items1->GetCellCaption(var_Items1->GetNextSiblingItem(hChild),long(0))) );
spGantt1->EndUpdate();

697
How can I change the predefined labels being displayed in the chart's header so it shows the data in short format with no literals

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutLevelCount(3);
	var_Chart->PutOverviewVisible(EXGANTTLib::exOverviewShowAll);
	var_Chart->PutAllowOverviewZoom(EXGANTTLib::exAlwaysZoom);
	var_Chart->PutLabel(EXGANTTLib::exYear,L"<%yy%><|><%yyyy%>");
	var_Chart->PutLabel(EXGANTTLib::exHalfYear,L"");
	var_Chart->PutLabel(EXGANTTLib::exQuarterYear,L"");
	var_Chart->PutLabel(EXGANTTLib::exMonth,L"<|><%m%><|><%m%>/<%yy%><|><%m%>/<%yyyy%>");
	var_Chart->PutLabel(EXGANTTLib::exThirdMonth,L"");
	var_Chart->PutLabel(EXGANTTLib::exWeek,L"<|><%ww%><|><%m%>/<%d%>/<%yy%><r><%ww%><|><%m%>/<%d%>/<%yyyy%><r><%ww%><||><||>256");
	var_Chart->PutLabel(EXGANTTLib::exDay,L"<|><%d%><|><%m%>/<%d%>/<%yy%><|><%m%>/<%d%>/<%yyyy%><||><||>4096");
	var_Chart->PutLabel(EXGANTTLib::exHour,L"<|><%hh%><|><%m%>/<%d%>/<%yy%> <%h%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%><||><||>65536");
	var_Chart->PutLabel(EXGANTTLib::exMinute,L"<|><%nn%><|><%h%>:<%nn% <%AM/PM%>><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
	var_Chart->PutLabel(EXGANTTLib::exSecond,_bstr_t("<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%m%>/<%d%>/<%yy") +
"yy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exYear,L"<%yyyy%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exHalfYear,L"");
	var_Chart->PutLabelToolTip(EXGANTTLib::exQuarterYear,L"");
	var_Chart->PutLabelToolTip(EXGANTTLib::exMonth,L"<%m%>/<%yyyy%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exThirdMonth,L"");
	var_Chart->PutLabelToolTip(EXGANTTLib::exWeek,L"<%m%>/<%d%>/<%yyyy%> <%ww%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exDay,L"<%m%>/<%d%>/<%yyyy%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exHour,L"<%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exMinute,L"<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exSecond,L"<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
	var_Chart->PutUnitScale(EXGANTTLib::exDay);
spGantt1->EndUpdate();

696
How can I get the caption of focused item
// SelectionChanged event - Fired after a new item has been selected.
void OnSelectionChangedGantt1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
		OutputDebugStringW( L"Handle" );
		OutputDebugStringW( _bstr_t(var_Items->GetFocusItem()) );
		OutputDebugStringW( L"Caption" );
		OutputDebugStringW( _bstr_t(var_Items->GetCellCaption(var_Items->GetFocusItem(),long(0))) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,vtMissing,"Cell 2.1");
	var_Items->InsertItem(h,vtMissing,"Cell 2.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

695
How can I get the caption of selected item
// SelectionChanged event - Fired after a new item has been selected.
void OnSelectionChangedGantt1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
		OutputDebugStringW( L"Handle" );
		OutputDebugStringW( _bstr_t(var_Items->GetSelectedItem(0)) );
		OutputDebugStringW( L"Caption" );
		OutputDebugStringW( _bstr_t(var_Items->GetCellCaption(var_Items->GetSelectedItem(0),long(0))) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,vtMissing,"Cell 2.1");
	var_Items->InsertItem(h,vtMissing,"Cell 2.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

694
How can I highligth the item from the cursor as it moves
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	spGantt1->BeginUpdate();
	long h = spGantt1->GetItemFromPoint(-1,-1,c,hit);
	EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
		var_Items->ClearItemBackColor(spGantt1->GetBackground(EXGANTTLib::BackgroundPartEnum(0x200 | EXGANTTLib::exHSRight | EXGANTTLib::exListOLEDropPosition)));
		var_Items->PutItemBackColor(h,RGB(240,250,240));
	spGantt1->PutBackground(EXGANTTLib::BackgroundPartEnum(0x200 | EXGANTTLib::exHSRight | EXGANTTLib::exListOLEDropPosition),h);
	spGantt1->EndUpdate();
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutDrawGridLines(EXGANTTLib::exHLines);
spGantt1->PutSelBackColor(RGB(240,250,240));
spGantt1->PutSelForeColor(RGB(0,0,0));
spGantt1->PutShowFocusRect(VARIANT_FALSE);
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutSelBackColor(RGB(240,250,240));
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,vtMissing,"Cell 2.1");
	var_Items->InsertItem(h,vtMissing,"Cell 2.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

693
How can I get the item from the cursor
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	long h = spGantt1->GetItemFromPoint(-1,-1,c,hit);
	OutputDebugStringW( L"Handle" );
	OutputDebugStringW( L"h" );
	OutputDebugStringW( L"Index" );
	OutputDebugStringW( _bstr_t(spGantt1->GetItems()->GetItemToIndex(h)) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutDrawGridLines(EXGANTTLib::exHLines);
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,vtMissing,"Cell 2.1");
	var_Items->InsertItem(h,vtMissing,"Cell 2.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

692
How can I get the column from the cursor, not only in the header
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	OutputDebugStringW( _bstr_t(spGantt1->GetColumnFromPoint(-1,0)) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"P1");
spGantt1->GetColumns()->Add(L"P2");
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->PutCellCaption(h,long(1),"R2");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Cell 1.1"),long(1),"Cell 1.2");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Cell 2.1"),long(1),"Cell 2.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

691
How can I get the column from the cursor
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	OutputDebugStringW( _bstr_t(spGantt1->GetColumnFromPoint(-1,-1)) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
spGantt1->GetColumns()->Add(L"P1");
spGantt1->GetColumns()->Add(L"P2");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->PutCellCaption(h,long(1),"R2");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Cell 1.1"),long(1),"Cell 1.2");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Cell 2.1"),long(1),"Cell 2.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

690
How can I get the cell's caption from the cursor
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	long h = spGantt1->GetItemFromPoint(-1,-1,c,hit);
	OutputDebugStringW( _bstr_t(spGantt1->GetItems()->GetCellCaption(h,c)) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("R1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.1");
	var_Items->InsertItem(h,vtMissing,"Cell 1.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("R2");
	var_Items->InsertItem(h,vtMissing,"Cell 2.1");
	var_Items->InsertItem(h,vtMissing,"Cell 2.2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

689
Is it possible to change the style for the vertical or horizontal grid lines, in the list area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
spGantt1->PutGridLineStyle(EXGANTTLib::GridLinesStyleEnum(EXGANTTLib::exGridLinesVSolid | EXGANTTLib::exGridLinesHDot4));
spGantt1->GetColumns()->Add(L"C1");
spGantt1->GetColumns()->Add(L"C2");
spGantt1->GetColumns()->Add(L"C3");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Item 1");
	var_Items->PutCellCaption(h,long(1),"SubItem 1.2");
	var_Items->PutCellCaption(h,long(2),"SubItem 1.3");
	h = var_Items->AddItem("Item 2");
	var_Items->PutCellCaption(h,long(1),"SubItem 2.2");
	var_Items->PutCellCaption(h,long(2),"SubItem 2.3");
spGantt1->EndUpdate();

688
How can I show the bars over the grid lines, i.e. so you cannot see the grid lines 'through' the bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
spGantt1->PutGridLineColor(RGB(220,220,220));
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,48);
	var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Chart->PutDrawGridLines(EXGANTTLib::exAllLines);
	var_Chart->PutGridLineStyle(EXGANTTLib::exGridLinesBehind);
	var_Chart->PutLevelCount(2);
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(1);
		var_Level->PutDrawGridLines(VARIANT_TRUE);
		var_Level->PutGridLineColor(RGB(220,220,220));
	EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task");
		var_Bar->PutPattern(EXGANTTLib::exPatternSolid);
		var_Bar->PutHeight(14);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Item 1");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"A",vtMissing);
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,15,0,00,00).operator DATE(),"B",vtMissing);
spGantt1->EndUpdate();

687
Is it possible to change the style for the vertical grid lines, in the chart area only

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
spGantt1->PutGridLineStyle(EXGANTTLib::exGridLinesDash);
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,48);
	var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Chart->PutDrawGridLines(EXGANTTLib::exAllLines);
	var_Chart->PutGridLineStyle(EXGANTTLib::exGridLinesDash);
	var_Chart->PutLevelCount(2);
	var_Chart->GetLevel(1)->PutDrawGridLines(VARIANT_TRUE);
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(0);
		var_Level->PutGridLineColor(RGB(255,0,0));
		var_Level->PutGridLineStyle(EXGANTTLib::exGridLinesVSolid);
	var_Chart->GetBars()->GetItem("Task")->PutPattern(EXGANTTLib::exPatternSolid);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Item 1");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"A",vtMissing);
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,15,0,00,00).operator DATE(),"B",vtMissing);
spGantt1->EndUpdate();

686
Is it possible to change the style for the grid lines, for instance to be solid not dotted

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
spGantt1->PutGridLineStyle(EXGANTTLib::exGridLinesSolid);
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,48);
	var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Chart->PutDrawGridLines(EXGANTTLib::exAllLines);
	var_Chart->PutGridLineStyle(EXGANTTLib::exGridLinesSolid);
	var_Chart->PutLevelCount(2);
	var_Chart->GetLevel(1)->PutDrawGridLines(VARIANT_TRUE);
	var_Chart->GetBars()->GetItem("Task")->PutPattern(EXGANTTLib::exPatternSolid);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Item 1");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"A",vtMissing);
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,15,0,00,00).operator DATE(),"B",vtMissing);
spGantt1->EndUpdate();

685
How can I show the grid lines for the chart and list area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutDrawGridLines(EXGANTTLib::exAllLines);
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,48);
	var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Chart->PutDrawGridLines(EXGANTTLib::exAllLines);
	var_Chart->PutLevelCount(2);
	var_Chart->GetLevel(1)->PutDrawGridLines(VARIANT_TRUE);
	var_Chart->GetBars()->GetItem("Task")->PutPattern(EXGANTTLib::exPatternSolid);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Item 1");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"A",vtMissing);
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,15,0,00,00).operator DATE(),"B",vtMissing);

684
How can I get the link from the point

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	OutputDebugStringW( _bstr_t(spGantt1->GetChart()->GetLinkFromPoint(-1,-1)) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,29,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,64);
	var_Chart->PutLevelCount(2);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->AddItem("Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L1");
	long h3 = var_Items->AddItem("Task 3");
	var_Items->AddBar(h3,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddLink("L2",h2,"K2",h3,"K3");
	var_Items->PutLink("L2",EXGANTTLib::exLinkText,"L2");
spGantt1->EndUpdate();

683
How can I get the bar from the point

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	OutputDebugStringW( _bstr_t(spGantt1->GetChart()->GetBarFromPoint(-1,-1)) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,29,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,64);
	var_Chart->PutLevelCount(2);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->AddItem("Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,4,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	long h3 = var_Items->AddItem("Task 3");
	var_Items->AddBar(h3,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddLink("L2",h2,"K2",h3,"K3");
spGantt1->EndUpdate();

682
How can I get the level from the cursor

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	OutputDebugStringW( _bstr_t(spGantt1->GetChart()->GetLevelFromPoint(-1,-1)) );
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2010,6,25,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutLevelCount(4);

681
I display numbers in my chart, but the AddBar requires a date how can I add a bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Tasks");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutNonworkingDays(0);
	var_Chart->PutFirstVisibleDate(long(0));
	var_Chart->PutToolTip(L"");
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(0);
		var_Level->PutLabel("<%i%>");
		var_Level->PutToolTip("");
	var_Chart->PutUnitWidth(24);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",long(2),long(4),vtMissing,vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",long(6),long(10),vtMissing,vtMissing);
spGantt1->EndUpdate();

680
I display numbers in the chart's header but do not want to get displayed negative numbers. How can i do that

// DateChange event - Occurs when the first visible date is changed.
void OnDateChangeGantt1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	spGantt1->GetChart()->PutFirstVisibleDate(long(0));
	spGantt1->PutScrollPartEnable(EXGANTTLib::exHChartScroll,EXGANTTLib::exLeftBPart,VARIANT_FALSE);
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutNonworkingDays(0);
	var_Chart->PutFirstVisibleDate(long(0));
	var_Chart->PutToolTip(L"");
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(0);
		var_Level->PutLabel("<%i%>");
		var_Level->PutToolTip("<%i%>");
	var_Chart->PutUnitWidth(24);
spGantt1->EndUpdate();

679
How can I display numbers in the chart's header instead dates

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutNonworkingDays(0);
	var_Chart->PutFirstVisibleDate(long(0));
	var_Chart->PutToolTip(L"");
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(0);
		var_Level->PutLabel("<%i%>");
		var_Level->PutToolTip("");
	var_Chart->PutUnitWidth(24);
spGantt1->EndUpdate();

678
How can I determine that a certain bar is the topmost

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,48);
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,27,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Bars A B");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"A",vtMissing);
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"B",vtMissing);
	var_Items->PutItemBar(h,"B",EXGANTTLib::exBarColor,long(255));
	h = var_Items->AddItem("Bars B A");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"B",vtMissing);
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"A",vtMissing);
	var_Items->PutItemBar(h,"A",EXGANTTLib::exBarColor,long(255));

677
Is there any automatic way to change a property for all bars in the chart

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 3"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 4"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K4",vtMissing);
	var_Items->PutItemBar(0,"<*>",EXGANTTLib::exBarColor,long(255));

676
I have an EBN file how can I apply different colors to it, so no need to create a new one

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->PutSelBackColor(spGantt1->GetBackColor());
spGantt1->PutSelForeColor(spGantt1->GetForeColor());
spGantt1->PutHasLines(EXGANTTLib::exNoLine);
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	long hC = var_Items->InsertItem(h,vtMissing,"Default");
	var_Items->PutItemBackColor(hC,0x1000000);
	var_Items->PutItemHeight(var_Items->InsertItem(h,vtMissing,""),6);
	hC = var_Items->InsertItem(h,vtMissing,"Light Green");
	var_Items->PutItemBackColor(hC,0x100ff00);
	var_Items->PutItemHeight(var_Items->InsertItem(h,vtMissing,""),6);
	hC = var_Items->InsertItem(h,vtMissing,"Dark Green");
	var_Items->PutItemBackColor(hC,0x1007f00);
	var_Items->PutItemHeight(var_Items->InsertItem(h,vtMissing,""),6);
	hC = var_Items->InsertItem(h,vtMissing,"Magenta");
	var_Items->PutItemBackColor(hC,0x1ff7fff);
	var_Items->PutItemHeight(var_Items->InsertItem(h,vtMissing,""),6);
	hC = var_Items->InsertItem(h,vtMissing,"Yellow");
	var_Items->PutItemBackColor(hC,0x17fffff);
	var_Items->PutItemHeight(var_Items->InsertItem(h,vtMissing,""),6);
	var_Items->PutExpandItem(h,VARIANT_TRUE);

675
How can I remove all bars from the chart
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 3"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 4"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->ClearBars(0);

674
How can I change the color for all bars with a specified key

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 3"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 4"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->PutItemBar(0,"K1",EXGANTTLib::exBarColor,long(255));

673
Is there any automatic way to change a property for all bars with a specified key

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 3"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 4"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->PutItemBar(0,"K1",EXGANTTLib::exBarColor,long(255));

672
How can I remove all bars with specified key
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 3"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 4"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->RemoveBar(0,"K1");

671
Is there any option to show gradient bars without using EBN technology

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->GetItem("Task");
	var_Bar->PutColor(RGB(255,0,0));
	var_Bar->PutStartColor(RGB(0,255,0));
	var_Bar->PutEndColor(RGB(255,255,0));
	var_Bar->PutPattern(EXGANTTLib::exPatternBox);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Task");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);

670
How can I disable the control's splitter so the user can't resize the list area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutOnResizeControl(EXGANTTLib::OnResizeControlEnum(EXGANTTLib::exDisableSplitter | EXGANTTLib::exResizeChart));
spGantt1->GetChart()->PutPaneWidth(VARIANT_FALSE,60);

669
How can I disable the control's splitter so the user can't resize the chart area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutOnResizeControl(EXGANTTLib::exDisableSplitter);
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,60);

668
How can I define a bar that shows two colors, one up and one down, without using skin or EBN files

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->Add(L"A");
	var_Bar->PutColor(RGB(255,0,0));
	var_Bar->PutShape(EXGANTTLib::exShapeSolidUp);
	var_Bar->PutPattern(EXGANTTLib::exPatternSolid);
EXGANTTLib::IBarPtr var_Bar1 = spGantt1->GetChart()->GetBars()->Add(L"B");
	var_Bar1->PutColor(RGB(128,0,0));
	var_Bar1->PutShape(EXGANTTLib::exShapeSolidDown);
	var_Bar1->PutPattern(EXGANTTLib::exPatternSolid);
spGantt1->GetChart()->GetBars()->Add(L"A%B")->PutShortcut(L"AB");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Task 1");
	var_Items->AddBar(h,"AB",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,long(1));
spGantt1->EndUpdate();

667
Does your control support RightToLeft property for RTL languages or right to left

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutScrollBars(EXGANTTLib::exDisableBoth);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"P1")));
	var_Column->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutPartialCheck(VARIANT_TRUE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->PutRightToLeft(VARIANT_TRUE);
spGantt1->EndUpdate();

666
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutScrollBars(EXGANTTLib::exDisableBoth);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
	var_Columns->Add(L"C4");
	var_Columns->Add(L"C5");
	var_Columns->Add(L"C6");
	var_Columns->Add(L"C7");
	var_Columns->Add(L"C8");
spGantt1->PutRightToLeft(VARIANT_TRUE);
spGantt1->EndUpdate();

665
Can I display the cell's check box after the text

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")));
	var_Column->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
	var_Column->PutDef(EXGANTTLib::exCellDrawPartsOrder,"caption,check");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellHasCheckBox(var_Items->AddItem("Caption 1"),long(0),VARIANT_TRUE);
	var_Items->PutCellHasCheckBox(var_Items->AddItem("Caption 2"),long(0),VARIANT_TRUE);

664
Can I change the order of the parts in the cell, as checkbox after the text, and so on

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")))->PutDef(EXGANTTLib::exCellDrawPartsOrder,"caption,check,icon,icons,picture");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Text");
	var_Items->PutCellImage(h,long(0),1);
	var_Items->PutCellHasCheckBox(h,long(0),VARIANT_TRUE);

663
Can I have an image displayed after the text. Can I get that effect without using HTML content

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Column")))->PutDef(EXGANTTLib::exCellDrawPartsOrder,"caption,icon,check,icons,picture");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Text");
	var_Items->PutCellImage(h,long(0),1);

662
Is there any option to print the columns section on each page

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Col 1");
spGantt1->GetColumns()->Add(L"Col 2");
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutLevelCount(2);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Col 1");
	var_Items->PutCellCaption(h1,long(1),"Col 2");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->AddItem("Col 1");
	var_Items->PutCellCaption(h2,long(1),"Col 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,2,5,0,00,00).operator DATE(),COleDateTime(2001,2,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkStartPos,long(0));
spGantt1->EndUpdate();
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXPRINTLib' for the library: 'ExPrint 1.0 Control Library'

	#import <ExPrint.dll>
	using namespace EXPRINTLib;
*/
EXPRINTLib::IExPrintPtr var_Print = ::CreateObject(L"Exontrol.Print");
	var_Print->PutOptions("ColumnsOnEveryPage=-2");
	var_Print->PutPrintExt(((EXGANTTLib::IGanttPtr)(spGantt1)));
	var_Print->Preview();

661
Is there any option to print the columns section on each page

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutLevelCount(2);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->AddItem("Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,2,5,0,00,00).operator DATE(),COleDateTime(2001,2,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkStartPos,long(0));
spGantt1->EndUpdate();
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXPRINTLib' for the library: 'ExPrint 1.0 Control Library'

	#import <ExPrint.dll>
	using namespace EXPRINTLib;
*/
EXPRINTLib::IExPrintPtr var_Print = ::CreateObject(L"Exontrol.Print");
	var_Print->PutOptions("ColumnsOnEveryPage=1");
	var_Print->PutPrintExt(((EXGANTTLib::IGanttPtr)(spGantt1)));
	var_Print->Preview();

660
How do I print the control's content

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->AddItem("Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkStartPos,long(0));
spGantt1->EndUpdate();
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXPRINTLib' for the library: 'ExPrint 1.0 Control Library'

	#import <ExPrint.dll>
	using namespace EXPRINTLib;
*/
EXPRINTLib::IExPrintPtr var_Print = ::CreateObject(L"Exontrol.Print");
	var_Print->PutPrintExt(((EXGANTTLib::IGanttPtr)(spGantt1)));
	var_Print->Preview();

659
How can I display the column using currency format and enlarge the font for certain values

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Currency")));
	var_Column->PutDef(EXGANTTLib::exCellCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");
	var_Items->AddItem("9.94");
	var_Items->AddItem("11.94");
	var_Items->AddItem("1000");

658
How can I highlight only parts of the cells

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"")));
	var_Column->PutDef(EXGANTTLib::exCellCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

657
How can I get the number of occurrences of a specified string in the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"occurrences")));
	var_Column->PutComputedField(L"lower(%0) count 'o'");
	var_Column->PutFormatColumn(L"'contains ' + value + ' of \\'o\\' chars'");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1 oooof the root");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

656
How can I display dates in my format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Date")));
	var_Column->PutDef(EXGANTTLib::exCellCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,21,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,22,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,24,0,00,00).operator DATE());

655
How can I display dates in short format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Date")))->PutFormatColumn(L"shortdate(value)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,2,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,3,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,4,0,00,00).operator DATE());

654
How can I display dates in long format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Date")))->PutFormatColumn(L"longdate(value)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,2,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,3,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,4,0,00,00).operator DATE());

653
How can I display only the right part of the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Right")));
	var_Column->PutComputedField(L"%0 right 2");
	var_Column->PutFormatColumn(L"'\"' + value + '\"'");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"SChild 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

652
How can I display only the left part of the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Left")))->PutComputedField(L"%0 left 2");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"SChild 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

651
How can I display true or false instead 0 and -1

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Boolean")))->PutFormatColumn(L"value != 0 ? 'true' : 'false'");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(VARIANT_TRUE);
	var_Items->AddItem(VARIANT_FALSE);
	var_Items->AddItem(VARIANT_TRUE);
	var_Items->AddItem(long(0));
	var_Items->AddItem(long(1));

650
How can I display icons or images instead numbers

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Icons")));
	var_Column->PutDef(EXGANTTLib::exCellCaptionFormat,long(1));
	var_Column->PutFormatColumn(L"'The cell displays the icon <img>'+value+'</img> instead ' + value");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(1));
	var_Items->AddItem(long(2));
	var_Items->AddItem(long(3));

649
How can I display the column using currency

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Currency")))->PutFormatColumn(L"currency(dbl(value))");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");
	var_Items->AddItem("0");
	var_Items->AddItem(long(5));
	var_Items->AddItem("10000.99");

648
How can I display the currency only for not empty cells

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Currency")))->PutComputedField(L"len(%0) ? currency(dbl(%0)) : ''");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");
	var_Items->AddItem("0");
	var_Items->PutItemBackColor(var_Items->AddItem(vtMissing),RGB(255,128,128));
	var_Items->AddItem("10000.99");

647
Is there a function to display the number of days between two date including the number of hours

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Start")))->PutWidth(32);
spGantt1->GetColumns()->Add(L"End");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Duration")))->PutComputedField(_bstr_t("2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? ' and ' : ") +
"'') + =:3 + ' hour(s)' : '' )");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem(COleDateTime(2001,1,11,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2001,1,14,0,00,00).operator DATE());
	h = var_Items->AddItem(COleDateTime(2002,2,22,12,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2002,3,14,13,00,00).operator DATE());
	h = var_Items->AddItem(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2003,4,11,11,00,00).operator DATE());

646
Is there a function to display the number of days between two date including the number of hours

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Start");
spGantt1->GetColumns()->Add(L"End");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Duration")))->PutComputedField(L"\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem(COleDateTime(2001,1,11,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2001,1,14,23,00,00).operator DATE());
	h = var_Items->AddItem(COleDateTime(2002,2,22,12,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2002,3,14,13,00,00).operator DATE());
	h = var_Items->AddItem(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2003,4,11,11,00,00).operator DATE());

645
How can I display the number of days between two dates

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Start");
spGantt1->GetColumns()->Add(L"End");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Duration")))->PutComputedField(L"(date(%1)-date(%0)) + ' days'");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem(COleDateTime(2001,1,11,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2001,1,14,0,00,00).operator DATE());
	h = var_Items->AddItem(COleDateTime(2002,2,22,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2002,3,14,0,00,00).operator DATE());
	h = var_Items->AddItem(COleDateTime(2003,3,13,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2003,4,11,0,00,00).operator DATE());

644
How can I get second part of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Second")))->PutComputedField(L"sec(date(%0))");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,11,10,10,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,22,11,01,22).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,13,12,23,01).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,14,13,11,59).operator DATE());

643
How can I get minute part of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Minute")))->PutComputedField(L"min(date(%0))");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,11,10,10,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,22,11,01,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,13,12,23,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,14,13,11,00).operator DATE());

642
How can I check the hour part only so I know it was afternoon

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetConditionalFormats()->Add(L"hour(%0)>=12",vtMissing)->PutBold(VARIANT_TRUE);
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Hour")))->PutComputedField(L"hour(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,14,13,00,00).operator DATE());

641
What about a function to get the day in the week, or days since Sunday

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"WeekDay")))->PutComputedField(L"weekday(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,14,13,00,00).operator DATE());

640
Is there any function to get the day of the year or number of days since January 1st

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Day since January 1st")))->PutComputedField(L"yearday(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,14,13,00,00).operator DATE());

639
How can I display only the day of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Day")))->PutComputedField(L"day(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,11,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,22,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,13,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,14,13,00,00).operator DATE());

638
How can I display only the month of the date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Month")))->PutComputedField(L"month(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,4,13,00,00).operator DATE());

637
How can I get only the year part from a date expression

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Year")))->PutComputedField(L"year(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,4,13,00,00).operator DATE());

636
Can I convert the expression to date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Date")))->PutComputedField(L"date(dbl(%0))");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("-1.98");
	var_Items->AddItem("30000.99");
	var_Items->AddItem("3561.23");
	var_Items->AddItem("1232.34");

635
Can I convert the expression to a number, double or float

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Number + 2")))->PutComputedField(L"dbl(%0)+2");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("-1.98");
	var_Items->AddItem("0.99");
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");

634
How can I display dates in long format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"LongFormat")))->PutComputedField(L"longdate(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,4,13,00,00).operator DATE());

633
How can I display dates in short format

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"ShortFormat")))->PutComputedField(L"shortdate(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,4,13,00,00).operator DATE());

632
How can I display the time only of a date expression

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Date");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Time")))->PutComputedField(L"'time is:' + time(date(%0))");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2002,2,2,11,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2003,3,3,12,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2004,4,4,13,00,00).operator DATE());

631
Is there any function to display currencies, or money formatted as in the control panel

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Currency")))->PutComputedField(L"currency(dbl(%0))");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");
	var_Items->AddItem("10000.99");

630
How can I convert the expression to a string so I can look into the date string expression for month's name

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Str")))->PutComputedField(L"str(%0) + ' AA'");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("-1.98");
	var_Items->AddItem("0.99");
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");

629
Can I display the absolute value or positive part of the number

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Abs")))->PutComputedField(L"abs(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("-1.98");
	var_Items->AddItem("0.99");
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");

628
Is there any function to get largest number with no fraction part that is not greater than the value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Floor")))->PutComputedField(L"floor(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("-1.98");
	var_Items->AddItem("0.99");
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");

627
Is there any function to round the values base on the .5 value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Round")))->PutComputedField(L"round(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("-1.98");
	var_Items->AddItem("0.99");
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");

626
How can I get or display the integer part of the cell

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Number");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Int")))->PutComputedField(L"int(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("-1.98");
	var_Items->AddItem("0.99");
	var_Items->AddItem("1.23");
	var_Items->AddItem("2.34");

625
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"")))->PutComputedField(L"proper(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("root");
	var_Items->InsertItem(h,vtMissing,"child child");
	var_Items->InsertItem(h,vtMissing,"child child");
	var_Items->InsertItem(h,vtMissing,"child child");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

624
Is there any option to display cells in uppercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"")))->PutComputedField(L"upper(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Chld 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

623
Is there any option to display cells in lowercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"")))->PutComputedField(L"lower(%0)");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Chld 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

622
How can I mark the cells that has a specified type, ie strings only

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetConditionalFormats()->Add(L"type(%0) = 8",vtMissing)->PutForeColor(RGB(255,0,0));
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,long(2));
	var_Items->InsertItem(h,vtMissing,"Chld 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

621
How can I bold the items that contains data or those who displays empty strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetConditionalFormats()->Add(L"not len(%1)=0",vtMissing)->PutBold(VARIANT_TRUE);
spGantt1->GetColumns()->Add(L"C1");
spGantt1->GetColumns()->Add(L"C2");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	long hC = var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutCellCaption(hC,long(1),"1");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

620
Can I change the background color for items or cells that contains a specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetConditionalFormats()->Add(L"%0 contains 'hi'",vtMissing)->PutBackColor(RGB(255,0,0));
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Chld 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

619
Is there any option to change the fore color for cells or items that ends with a specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetConditionalFormats()->Add(L"%0 endwith '22'",vtMissing)->PutForeColor(RGB(255,0,0));
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 1.22");
	var_Items->InsertItem(h,vtMissing,"Child 2.22");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

618
How can I highlight the cells or items that starts with a specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetConditionalFormats()->Add(L"%0 startwith 'C'",vtMissing)->PutUnderline(VARIANT_TRUE);
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"SChild 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

617
How can I change the background color or the visual appearance using ebn for a particular column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Column 1");
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXGANTTLib::exHeaderBackColor,long(16777216));
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Column 3")))->PutDef(EXGANTTLib::exHeaderBackColor,long(16777471));
	var_Columns->Add(L"Column 4");

616
How can I change the background color for a particular column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Column 1");
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXGANTTLib::exHeaderBackColor,long(8439039));
	var_Columns->Add(L"Column 3");

615
Is it possible to define level in terms of just increasing numbers (not a Date)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,32);
	var_Chart->PutUnitWidth(32);
	var_Chart->PutFirstVisibleDate(long(1000));
	var_Chart->GetLevel(0)->PutLabel("<%i%>");

614
How can I hide the non-working units ( days or hours )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutLevelCount(2);
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(0);
		var_Level->PutLabel("<%dddd%>");
		var_Level->PutAlignment(EXGANTTLib::CenterAlignment);
	var_Chart->GetLevel(1)->PutLabel(long(65536));
	var_Chart->PutNonworkingHours(16773375);
	var_Chart->PutShowNonworkingUnits(VARIANT_FALSE);
spGantt1->EndUpdate();

613
Is there a way to have the display show the word "Noon" instead "12:00 PM" in the chart's header/levels

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,10,00,00).operator DATE());
	var_Chart->PutLevelCount(3);
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(0);
		var_Level->PutLabel("<b><%mmm%> <%d%>, <%yyyy%></b>");
		var_Level->PutAlignment(EXGANTTLib::CenterAlignment);
		var_Level->PutUnit(EXGANTTLib::exDay);
	EXGANTTLib::ILevelPtr var_Level1 = var_Chart->GetLevel(1);
		var_Level1->PutLabel("<%h%>:00 <%AM/PM%>");
		var_Level1->PutAlignment(EXGANTTLib::CenterAlignment);
		var_Level1->PutUnit(EXGANTTLib::exHour);
		var_Level1->PutDrawTickLines(VARIANT_TRUE);
		var_Level1->PutDrawGridLines(VARIANT_TRUE);
		var_Level1->PutReplaceLabel(L"12:00 PM",L"<fgcolor=0000FF><b>Noon</b></fgcolor>");
	EXGANTTLib::ILevelPtr var_Level2 = var_Chart->GetLevel(2);
		var_Level2->PutLabel("");
		var_Level2->PutUnit(EXGANTTLib::exMinute);
		var_Level2->PutCount(15);

612
How can I change the selection background color in the chart area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutSelBackColor(RGB(255,0,0));
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,6,0,00,00).operator DATE(),COleDateTime(2001,1,14,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE);

611
How can I change the selection background color in the chart area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutSelBackColor(0x1000000);
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,6,0,00,00).operator DATE(),COleDateTime(2001,1,14,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE);

610
Is there any way to extend the selection on the chart

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutSelBackColor(spGantt1->GetSelBackColor());
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,6,0,00,00).operator DATE(),COleDateTime(2001,1,14,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->PutSelectItem(var_Items->GetFirstVisibleItem(),VARIANT_TRUE);

609
How can I display the column's header using multiple lines

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHeaderHeight(128);
spGantt1->PutHeaderSingleLine(VARIANT_FALSE);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"This is just a column that should break the header.")))->PutWidth(32);
spGantt1->GetColumns()->Add(L"This is just another column that should break the header.");

608
How can change the width, transparency, style, visual appearance ( EBN), of the vertical bar that shows the current date-time

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->GetLevel(0)->PutLabel(long(1048576));
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(1);
		var_Level->PutLabel("<%ss%>");
		var_Level->PutCount(15);
	var_Chart->PutMarkNowColor(0x1000000);
	var_Chart->PutMarkNowWidth(6);
	var_Chart->PutMarkNowTransparent(50);
spGantt1->GetColumns()->Add(L"Tasks");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2008,1,1,0,00,00).operator DATE(),COleDateTime(2018,1,1,0,00,00).operator DATE(),vtMissing,vtMissing);

607
How can change the width, style, visual appearance ( EBN), of the vertical bar that shows the current time

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->GetLevel(0)->PutLabel(long(1048576));
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(1);
		var_Level->PutLabel("<%ss%>");
		var_Level->PutCount(15);
	var_Chart->PutMarkNowColor(0x1000000);
	var_Chart->PutMarkNowWidth(6);
spGantt1->GetColumns()->Add(L"Tasks");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2008,1,1,0,00,00).operator DATE(),COleDateTime(2018,1,1,0,00,00).operator DATE(),vtMissing,vtMissing);

606
How can I show a vertical bar that indicates the current time

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->GetLevel(0)->PutLabel(long(1048576));
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(1);
		var_Level->PutLabel("<%ss%>");
		var_Level->PutCount(15);
	var_Chart->PutMarkNowColor(RGB(0,0,255));
	var_Chart->PutMarkNowWidth(7);
spGantt1->GetColumns()->Add(L"Tasks");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2008,1,1,0,00,00).operator DATE(),COleDateTime(2018,1,1,0,00,00).operator DATE(),vtMissing,vtMissing);

605
How can I show semi-transparent the vertical bar that indicates the current time

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->GetLevel(0)->PutLabel(long(1048576));
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(1);
		var_Level->PutLabel("<%ss%>");
		var_Level->PutCount(15);
	var_Chart->PutMarkNowColor(RGB(0,0,255));
	var_Chart->PutMarkNowWidth(7);
	var_Chart->PutMarkNowTransparent(50);
spGantt1->GetColumns()->Add(L"Tasks");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2008,1,1,0,00,00).operator DATE(),COleDateTime(2018,1,1,0,00,00).operator DATE(),vtMissing,vtMissing);

604
Is there any way to highlight or show a vertical bar that indicates the current time, from 15 to 15 seconds

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetChart()->PutLevelCount(2);
spGantt1->GetChart()->GetLevel(0)->PutLabel(long(1048576));
EXGANTTLib::ILevelPtr var_Level = spGantt1->GetChart()->GetLevel(1);
	var_Level->PutLabel("<%ss%>");
	var_Level->PutCount(15);
spGantt1->GetChart()->PutMarkNowColor(RGB(0,0,255));
spGantt1->GetChart()->PutMarkNowCount(15);
spGantt1->GetChart()->PutMarkNowWidth(3);

603
Is there any way to highlight or show a vertical bar that indicates the current time, from minute to minute, hour and so on

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutUnitWidth(48);
	var_Chart->PutLevelCount(1);
	var_Chart->GetLevel(0)->PutLabel(long(1048576));
	var_Chart->PutMarkNowColor(RGB(255,0,0));
	var_Chart->PutMarkNowUnit(EXGANTTLib::exMinute);
	var_Chart->PutMarkNowWidth(var_Chart->GetUnitWidth());

602
Is there any way to highlight or show a vertical bar that indicates the current time

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetChart()->PutLevelCount(2);
spGantt1->GetChart()->GetLevel(0)->PutLabel(long(1048576));
EXGANTTLib::ILevelPtr var_Level = spGantt1->GetChart()->GetLevel(1);
	var_Level->PutLabel("<%ss%>");
	var_Level->PutCount(15);
spGantt1->GetChart()->PutMarkNowColor(RGB(255,0,0));

601
Is there a way of making a bar flash on the screen
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Flashy task");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarTransparent,long(80));